package com.coderdream.chapter13.visitor.sample;

public class File extends Entry {

	private String name;

	private int size;

	public File(String name, int size) {
		super();
		this.name = name;
		this.size = size;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public int getSize() {
		return this.size;
	}

	public void accept(Visitor v) {
		v.visit(this);
	}
}
